package com.cnc.servlet;

import com.cnc.utils.ResourceUtil;

import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.Part;
import java.io.File;
import java.io.IOException;
import java.util.Collection;

@MultipartConfig
@WebServlet("/test")
public class Test extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String sids = req.getParameter("sids");
        System.out.println(sids);
        System.out.println(sids.equals(""));
        String[] split = sids.split(",");
        for (String s : split) {
            System.out.println("i"+s);
        }
        System.out.println(split.length);
    }
}
